package com.aizuda.boot.modules.business.log.mapper;

import com.aizuda.boot.modules.business.log.domain.entity.OperationLogEntity;
import com.aizuda.boot.modules.business.log.domain.request.ExportLogDTO;
import com.aizuda.boot.modules.business.log.domain.request.LogQueryDTO;
import com.aizuda.boot.modules.business.log.domain.response.LogExportDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author sangyirong
 * @ClassName LogMapper
 * @Version 1.0
 * @Date 2025/6/5 19:32
 */
@Mapper
public interface LogMapper extends BaseMapper<OperationLogEntity> {

    /**
     * 获取日志分页
     *
     * @param page
     * @param logQueryDTO
     * @return
     */
    IPage<OperationLogEntity> getLogPage(IPage page, LogQueryDTO logQueryDTO);

    /**
     * 导出日志数据
     *
     * @param exportLogDTO
     * @return
     */
    List<LogExportDTO> exportLogData(ExportLogDTO exportLogDTO);
}
